add_executable(hashpipe_write_databuf hashpipe_write_databuf.c)
add_executable(hashpipe_check_status hashpipe_check_status.c)
add_executable(hashpipe_clean_shmem hashpipe_clean_shmem.c)
add_executable(hashpipe_dump_databuf hashpipe_dump_databuf.c)
add_executable(hashpipe_check_databuf hashpipe_check_databuf.c)
add_executable(hashpipe_main hashpipe_main.c)

target_link_libraries(hashpipe_write_databuf PUBLIC hashpipe)
target_link_libraries(hashpipe_check_status PUBLIC hashpipe)
target_link_libraries(hashpipe_clean_shmem PUBLIC hashpipe)
target_link_libraries(hashpipe_dump_databuf PUBLIC hashpipe)
target_link_libraries(hashpipe_check_databuf PUBLIC hashpipe)
target_link_libraries(hashpipe_main PUBLIC hashpipe dl)

install(TARGETS hashpipe_write_databuf RUNTIME DESTINATION bin)
install(TARGETS hashpipe_check_status RUNTIME DESTINATION bin)
install(TARGETS hashpipe_clean_shmem RUNTIME DESTINATION bin)
install(TARGETS hashpipe_dump_databuf RUNTIME DESTINATION bin)
install(TARGETS hashpipe_check_databuf RUNTIME DESTINATION bin)